<?php
defined('BASEPATH') OR exit('No direct script access allowed');

/*
| -------------------------------------------------------------------------
| Hooks
| -------------------------------------------------------------------------
| This file lets you define "hooks" to extend CI without hacking the core
| files.  Please see the user guide for info:
|
|	http://codeigniter.com/user_guide/general/hooks.html
|
*/

// 加载控制器之前，先根据用户组加载其可用的菜单
/*$hook['pre_controller'] = array(
        'class'    => 'Auth',
        'function' => 'get_menu',
        'filename' => 'Auth.php',
        'filepath' => 'hooks',
        // 'params'   => array()
);*/

// 实例化控制器后，先根据menu和权限确定是否可以访问
$hook['post_controller_constructor'] = array(
		'class'=>'Auth',
		'function'=>'check_auth',
		'filename'=>'Auth.php',
		'filepath'=>'hooks',
		// 'params'=>array()
);
